package com.chx.controller;

import com.chx.dubbo.HelloWorldConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 夏天
 * @date 2018/4/28 下午12:48
 * @Description:
 */
@RestController("/hello")
public class HelloWorldController {

    @Autowired
    HelloWorldConsumerService helloWorldConsumerService;

    @GetMapping(name="/sayHello")
    String sayHello() {
        return helloWorldConsumerService.sayHello("chx");
    }
}
